package org.xinhe65045.springcloud.sample.toyshop.user.controller;

import org.rocky.lang.ApiResult;
import org.springframework.web.bind.annotation.RestController;
import org.xinhe65045.springcloud.sample.toyshop.user.api.service.UserApiService;

/**
 * @author sunxinhe
 */
@RestController
public class UserController implements UserApiService {

    public ApiResult<String> getUser(){
        return ApiResult.<String>builder()
                .code("SUCCESS")
                .message("")
                .data("some user info")
                .build();
    }
}
